package com.apollow.oschina.protocol;

import com.apollow.oschina.base.BaseProtocol;
import com.apollow.oschina.bean.DetailTweetBean;
import com.apollow.oschina.bean.MoveNewBean;

import retrofit2.Call;

/**
 * Created by Administrator on 2017/1/15.
 * 项目名:    OsChina
 * 包名:      com.apollow.oschina.protocol
 * 文件名:    BlogProtocol
 * 创建者:    LXF
 * 创建时间:   ${DATA}14:50
 * 描述:     TODO
 */

public class HotTweetProtocol extends BaseProtocol<MoveNewBean>{
    String id="-1";
    @Override
    protected Call<MoveNewBean> getCall(String... parms) {
        return mService.getMoveInfo(id,"0","20");
    }
    public void setId(String id) {
        this.id=id;
    }
    //获取热点动弹详情页面信息;
    public DetailTweetBean getTweetBean(String uid){
        TweetDetailProtocol protocol=new TweetDetailProtocol();
        protocol.setUid(uid);
        DetailTweetBean data = protocol.getData();
        return data;
    }
}
